home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Developer Toolbox 6.1
/
SGI Developer Toolbox 6.1 - Disc 1.iso
/
toolbox
/
src
/
exampleCode
/
opengl
/
pick
/
README
< prev
Wrap
Text File
|
1996-11-11
|
878b
|
22 lines
~4Dgifts/toolbox/src/exampleCode/opengl/pick README
The pick2 program demonstrates the use of X overlay window on top of
a RGBA, Doublebuffered and depthbuffered OpenGL Window to do picking.
The program accepts two optional parameters which define the number
of polygons in the x and y directions. The default is a 10x10 grid.
RIGHTMOUSE: drag the rubberband to create a picking window.
Polygons inside the picking window will be
highlighted in RED.
MIDDLEMOUSE: clears overlays/resets grid to initial position.
LEFTMOUSE: can be used to rotate the model.
Esc terminates the program.
The pick buffer is set to 2000 words which can pick about 600 items.
To pick a larger region, modify the pick_buffer_size #define in pick2.c.